package cn.com.dingtek.genius.manager.server.web.advice;

public enum ResponseCode {
    /**
     * 系统级错误
     */
    SERVER_ERROR(-1, "Server Error"),
    /**
     * 用户未登录
     */
    INVALID_AUTH(-2, "User not login"),
    /**
     * 用户未通过授权
     */
    INVALID_PERMISSION(-3, "no permission"),
    /**
     * 业务中断
     */
    VERIFY_ERROR(-4, "params error");

    private int code;
    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}

